package day0221;

public class Flower {

    public static void main(String[] args) {
        flower();
    }

    public static void flower() {

        for (int num = 100; num < 1000; num++) {
            int gw = num % 10;
            int sw = num / 10 % 10;
            int bw = num / 100;

            if (num == Math.pow(gw, 3) + Math.pow(sw, 3) + Math.pow(bw, 3)) {
                System.out.println(num);
            }
        }
    }
}
